﻿namespace Text2Rss.Web.Models
{
	using System;
	using Text2Rss.Web.Code;

	public class Feed : VersionedEntity<Guid>
	{
		public Feed()
		{
			Id = Guid.NewGuid();
		}

		/// <summary>
		/// Gets or sets the user who created the feed
		/// </summary>
		public virtual User Owner { get; set; }

		/// <summary>
		/// Gets or sets the source file
		/// </summary>
		public virtual SourceFile SourceFile { get; set; }

		/// <summary>
		/// Gets or sets publish interval in seconds
		/// </summary>
		public virtual int PublishInterval { get; set; }

		/// <summary>
		/// Gets or sets size of a single post
		/// </summary>
		public virtual int PostSize { get; set; }

		/// <summary>
		/// Gets or sets the current position in the source file
		/// </summary>
		public virtual long CurrentPosition { get; set; }
	}
}